package com.neusoft.edu.smartschool.app.nets;


import com.neusoft.edu.smartschool.app.entity.BaseBean;
import com.neusoft.edu.smartschool.app.entity.UserBean;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * @author: yeruyi
 * @date: 2018/5/29
 * @email: yeruyi_roy@outlook.com
 * @modify: 2018/5/29 创建文件
 */
public interface NetService {

    /**
     * 请求登录
     *
     * @param serverName 服务器名称
     * @param key 服务器Key值
     * @param appId appId
     * @param miyao 秘钥值
     * @param stuNo 学号
     * @param stuPwd 秘钥
     * @param stuToken token
     * @return
     */
    @FormUrlEncoded
    @POST("ruiTengLogin.action")
    Call<BaseBean<UserBean>> reqLogin(@Field("servername") String serverName, @Field("key") String key,
                                      @Field("appid") String appId, @Field("miyao") String miyao,
                                      @Field("clientStuno") String stuNo, @Field("clientPassword") String stuPwd,
                                      @Field("clientTokenId") String stuToken);



}
